package com.fit.dao.member;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.member.Member;



public interface MemberDAO {

	@CommitAfter
	public boolean save(Member newMember);

	@CommitAfter
	public boolean delete(Member member);

	@CommitAfter
	public boolean update(Member member);

	public List<Member> findAll();

	public Member findByNameAndSurname(String name, String surname);

	public Member findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
